home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 November / Maximum CD 2000 Nov.iso / AofE-Conquerers / age2xtrial.exe / CABFILE / MSGAME.CAB / Data / gamedata_x1.drs / Unnamed File 000014.bina < prev    next >
Text File  |  2000-07-18  |  5KB  |  293 lines

  1. ;start the pass
  2. (defrule
  3.     (difficulty <= easy)
  4.     (nor
  5.         (map-type fortress) 
  6.         (map-type arena)
  7.     )
  8. =>
  9.     (enable-wall-placement 2)
  10.     (disable-self)
  11. )
  12.  
  13. (defrule
  14.     (current-age > dark-age)
  15. =>
  16.     (set-goal wall-build NOTICE)
  17.     (enable-timer t-tower 1)
  18.     (disable-self)
  19. )
  20.  
  21. (defrule
  22.     (goal wall-build NOTICE)
  23.     (or
  24.         (goal rush-control CASTLE)
  25.         (goal rush-control IMPERIAL)
  26.     )
  27. =>
  28.     (set-goal wall-build POOR)
  29.     (disable-self)
  30. )
  31.  
  32. (defrule
  33.     (goal wall-build POOR)
  34.     (current-age >= castle-age)
  35. =>
  36.     (set-goal wall-build NOTICE)
  37.     (disable-self)
  38. )
  39.  
  40. (defrule
  41.     (goal wall-build NOTICE)
  42.     (or
  43.         (or
  44.             (goal rush-control RUSHING)
  45.             (goal castle-attempt YES)
  46.         )
  47.         (or
  48.             (or
  49.                 (goal 1 10)
  50.                 (difficulty >= easy)
  51.             )
  52.             (map-type fortress)
  53.         )
  54.     )
  55. =>
  56.     (set-goal wall-build NO)
  57.     (disable-self)
  58. )
  59.  
  60. (defrule
  61.     (goal wall-build NOTICE)
  62. =>
  63.     (set-goal wall-build YES)
  64.     (disable-self)
  65. )
  66.  
  67. (defrule
  68.     (goal wall-build NO)
  69.     (or
  70.         (goal personality 1)
  71.         (goal personality 2)
  72.     )
  73.     (not (map-type fortress) )
  74. =>
  75.     (set-goal wall-build YES)
  76.     (disable-self)
  77. )
  78.  
  79. (defrule
  80.     (goal wall-build NO)
  81.     (current-age == imperial-age)
  82.     (nor 
  83.         (map-type fortress)
  84.         (goal castle-attempt YES)
  85.     )
  86. =>
  87.     (set-goal wall-build YES)
  88.     (disable-self)
  89. )
  90.  
  91. (defrule
  92.     (goal wall-build YES)
  93.     (goal wonder-attempt POSSIBLE)
  94. =>
  95.     (set-goal wall-build NO)
  96.     (disable-self)
  97. )
  98.  
  99. (defrule
  100.     (goal wall-build NO)
  101.     (building-type-count-total wonder > 0)
  102.     (nor 
  103.         (map-type fortress) 
  104.         (or
  105.             (map-type scandanavia)
  106.             (map-type ghost-lake)
  107.         )
  108.     )
  109. =>
  110.     (set-goal wall-build YES)
  111. )
  112.  
  113. ;*****************************
  114. ;*****************************
  115. ;build walls
  116.  
  117. (defrule
  118.     (current-age == feudal-age)
  119.     (goal wall-build YES)
  120.     (can-build-wall-with-escrow 2 stone-wall-line)
  121.     (or
  122.         (can-afford-complete-wall 2 stone-wall-line)
  123.         (stone-amount > 125)
  124.     )
  125. =>
  126.     (release-escrow stone)
  127.     (build-wall 2 stone-wall-line)
  128. )
  129.  
  130. (defrule
  131.     (goal wall-build YES)
  132.     (can-build-wall-with-escrow 2 stone-wall-line)
  133.     (or
  134.         (can-afford-complete-wall 2 stone-wall-line)
  135.         (stone-amount > 300)
  136.     )
  137. =>
  138.     (release-escrow stone)
  139.     (build-wall 2 stone-wall-line)
  140. )
  141.  
  142. (defrule
  143.     (goal wall-build NO)
  144.     (building-type-count-total gate > 0)
  145.     (wall-completed-percentage 2 >= 75)
  146.     (wall-completed-percentage 2 < 100)
  147.     (can-build-wall-with-escrow 2 stone-wall-line)
  148. =>
  149.     (release-escrow stone)
  150.     (build-wall 2 stone-wall-line)
  151. )
  152.  
  153. (defrule
  154.     (goal wall-build YES)
  155.     (building-type-count-total gate < 4)
  156.     (can-build-gate-with-escrow 2)
  157. =>
  158.     (release-escrow stone)
  159.     (build-gate 2)
  160. )
  161.  
  162. (defrule
  163.     (goal wall-build YES)
  164.     (wall-completed-percentage 2 == 100)
  165.     (building-type-count-total gate == 0)
  166. =>
  167.     (delete-building stone-wall-line)
  168.     (set-goal wall-build NO)
  169. )
  170.  
  171. (defrule
  172.     (goal wall-build YES)
  173.     (wall-completed-percentage 2 == 100)
  174. =>
  175.     (set-goal wall-build NO)
  176. )
  177.  
  178. ;*****************************
  179. ;bombard towers
  180. (defrule
  181.     (can-build bombard-tower)
  182.     (not (goal wonder-attempt POSSIBLE) )
  183.     (or
  184.         (not (goal castle-attempt YES) )
  185.         (building-type-count-total bombard-tower < 2)
  186.     )
  187.     (or
  188.         (goal wall-build NO)
  189.         (timer-triggered t-tower)
  190.     )
  191. =>
  192.     (build bombard-tower)
  193. )
  194.  
  195. (defrule
  196.     (current-age == feudal-age)
  197.     (can-build watch-tower)
  198.     (or
  199.         (not (goal castle-attempt YES) )
  200.         (building-type-count-total watch-tower < 3)
  201.     )
  202.     (or
  203.         (goal wall-build NO)
  204.         (timer-triggered t-tower)
  205.     )
  206.     (nor
  207.         (goal rush-control CASTLE)
  208.         (goal rush-control IMPERIAL)
  209.     )
  210. =>
  211.     (build watch-tower)
  212. )
  213.  
  214. (defrule
  215.     (current-age == castle-age)
  216.     (can-build watch-tower-line)
  217.     (or
  218.         (not (goal castle-attempt YES) )
  219.         (building-type-count-total watch-tower-line < 6)
  220.     )
  221.     (not (research-available ri-guard-tower) )
  222.     (or
  223.         (goal wall-build NO)
  224.         (timer-triggered t-tower)
  225.     )
  226.     (not (goal rush-control IMPERIAL) )
  227. =>
  228.     (build watch-tower-line)
  229. )
  230.  
  231. (defrule
  232.     (current-age == imperial-age)
  233.     (can-build watch-tower-line)
  234.     (nor
  235.         (can-build bombard-tower)
  236.         (goal wonder-attempt POSSIBLE)
  237.     )
  238.     (or
  239.         (not (goal castle-attempt YES) )
  240.         (building-type-count-total watch-tower-line < 9)
  241.     )
  242.     (nor
  243.         (research-available ri-guard-tower)
  244.         (research-available ri-keep)
  245.     )
  246.     (or
  247.         (goal wall-build NO)
  248.         (timer-triggered t-tower)
  249.     )
  250. =>
  251.     (build watch-tower-line)
  252. )
  253.  
  254. ; post-wonder watch towers -- go nuts!
  255. (defrule
  256.     (building-type-count-total wonder > 0)
  257.     (can-build-with-escrow bombard-tower)
  258. =>
  259.     (release-escrow gold)
  260.     (release-escrow stone)
  261.     (build bombard-tower)
  262. )
  263.  
  264. (defrule
  265.     (building-type-count-total wonder > 0)
  266.     (can-build-with-escrow watch-tower-line)
  267.     (nor
  268.         (research-available ri-guard-tower)
  269.         (research-available ri-keep)
  270.     )
  271. =>
  272.     (release-escrow wood)
  273.     (release-escrow stone)
  274.     (build watch-tower-line)
  275. )
  276.  
  277. (defrule
  278.     (timer-triggered t-tower)
  279.     (or
  280.         (can-afford-complete-wall 2 stone-wall-line)
  281.         (stone-amount > 500)
  282.     )
  283. =>
  284.     (disable-timer t-tower)
  285.     (enable-timer t-tower 60)
  286. )
  287.  
  288. (defrule
  289.     (timer-triggered t-tower)
  290. =>
  291.     (disable-timer t-tower)
  292.     (enable-timer t-tower 300)
  293. )